package com.htu.courseService.common.util;

import cn.dev33.satoken.stp.StpUtil;
import com.alibaba.fastjson.JSON;
import com.htu.courseService.user.vo.UserInfo;

public class UserUtil {
    public static UserInfo getUserInfo(){
        String userInfo = (String) StpUtil.getExtra("userInfo");
        return JSON.parseObject(userInfo, UserInfo.class);
    }
}
